<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<base href="<%=basePath%>">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
<%@include file="/esayuiStyle.jsp" %>
</head>
<script type="text/javascript" src="js/DoctorRankClassJs.js"></script>
<body>
<div id="tb">
<form id="userCondition">
<div class="easyui-panel" title="设置查询条件">
	科室:<input id="section" class="easyui-combobox" name="sectionId" data-options="valueField:'id',textField:'name',url:'section/selectAll',panelHeight:'auto',panelMaxHeight:250,multiple:true"/>
	医生:<input id="user" class="easyui-combobox" name="userId" data-options="valueField:'id',textField:'name',url:'user/selectAll',panelHeight:'auto',panelMaxHeight:250,multiple:true"/>
	<input  class="easyui-combobox" id="doctorType" name="registrationChargeType_id" style="width:250px;" data-options=" 
			url:'registrationChargeType/selectAll', 
			method:'get', 
			valueField:'id', 
			textField:'typeName', 
			panelheight:'auto',
			label: '类型:', 
			labelposition: 'top'
		 ">
	<input class="easyui-datebox" id="kaishi"  label="开始时间:" data-options="validType:'shiftDate'" name="shiftDate" labelPosition="left" style="width:15%;">
	<input class="easyui-datebox" id="jieshu"  label="结束时间:" data-options="validType:'dateclosed'" name="dateclosed" labelPosition="left" style="width:15%;">
   	<a id="btn" href="javaScript:void(0)" onclick="setCondition();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">serch</a>
	<a id="btn" href="javascript:void(0)" onclick="resetCondition()" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true">Reset</a>
	
	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addDoctor();" data-options="iconCls:'icon-add',plain:true">添加</a>
	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="editDoctor();" data-options="iconCls:'icon-edit',plain:true">修改</a>
	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="leaveDoctor();" data-options="iconCls:'icon-remove',plain:true">请假</a>
	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="deleteDoctor();" data-options="iconCls:'icon-remove',plain:true">删除</a>
	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true">导出</a>
	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-sum',plain:true">批量导入</a>
	
</div>
</form>
</div>
			<table class="easyui-datagrid" id="doctorTable" title="Doctor list"
					data-options="url:'doctorRankClass/list',method:'post',fitColumns:true,striped:true,rownumbers:true ">
				<thead>
					<tr>
						<th data-options="field:'id'" width="80">医生排班编号</th>
						<th data-options="field:'asdasd',formatter:typeiFormatter" width="100">类型</th>
						<th data-options="field:'section',align:'right',formatter:keshiFormatter"  width="80">科室id</th>
						<th data-options="field:'user',align:'right',formatter:userFormatter" width="80">医生id</th>
						<th data-options="field:'amLimitNumber',align:'right'" width="80">上午限号</th>
						<th data-options="field:'amRegistrationNumber',align:'right'" width="80">上午已挂</th>
						<th data-options="field:'pmLimitNumber',align:'right'" width="80">下午限号</th>
						<th data-options="field:'pmRegistrationNumber',align:'right'" width="80">下午已挂</th>
						<th data-options="field:'shiftDate',align:'right'" width="80">值班日期</th>
						<th data-options="field:'leave',align:'right'" width="80">是否请假</th>
						<th data-options="field:'state',align:'center'" width="60">状态</th>
					</tr>
				</thead>
			</table>
</body>
</html>